Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

Re: Agent Not Working - Solved
~Andy Asanuzenings 19.Nov.03 07:39 AM a Web browser
Domino Server 6.0.1 Windows 2003


Found the solution, just to share here.
Created new database on server with the following agent. Works fine. Tks all.

Sub Initialize
Dim ses As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Set db=ses.GetDatabase("servername","Mail.box")
Set view=db.GetView("Mail")
Set doc=view.GetFirstDocument

Do While Not doc Is Nothing
If doc.RoutingState(0)="HOLD" Then
Call doc.RemoveItem("SaveOptions")
doc.RoutingState=""

If doc.HasItem("RoutingState") And doc.RoutingStateBy(0) <> "" Then
Call doc.ReplaceItemValue("Form",doc.Form(0))
Else
If doc.HasItem("MailSavedForm") And doc.MailSavedForm(0) <> "" Then
Call doc.ReplaceItemValue("Form",doc.MailSavedForm(0))
Else
If doc.HasItem("AppointmentType") Then
Call doc.ReplaceItemValue("Form","Notice")
Else
Call doc.ReplaceItemValue("Form","Memo")
End If
End If

End If

doc.Hops=25
Call doc.RemoveItem("RoutingStateBy")
End If
Call doc.Save(True,False)
Set doc=view.GetNextDocument(doc)
Loop
Call db.Close
End Sub




Agent Not Working (~Andy Asanuzeni... 14.Nov.03)
. . Re: Agent Not Working (~Jennifer Desto... 14.Nov.03)
. . . . RE: Re: Agent Not Working (~Andy Asanuzeni... 15.Nov.03)
. . . . . . AFAIK = As Far As I Know. And it is... (~Dan Elhipister... 17.Nov.03)
. . . . . . . . Tks a zillion Bill (~Andy Asanuzeni... 18.Nov.03)
. . . . . . RE: Re: Agent Not Working (~Zelda Opjipyge... 17.Nov.03)
. . . . Re: Agent Not Working - Solved (~Andy Asanuzeni... 19.Nov.03)
. . . . . . RE: Re: Agent Not Working - Solved (~Holly Frokigen... 19.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS